CC = gcc
LIBS = -lwiringPi
targets = test_pcf8591 test_tca9535

all: $(targets)

test_pcf8591:pcf8591t_test.c
	$(CC) -o $@ $^ $(LIBS)

test_tca9535:tca9535p_test.c
	$(CC) -o $@ $^ $(LIBS)

clean:
	rm -f *.o $(targets)
